package org.nf.web.servlet;

import jakarta.servlet.ServletException;
import java.io.IOException;

/**
 * @Author lzp
 * @Date 2024-05-20
 * 抽象的视图对象
 */
public interface View {
    /**
     * 抽象的渲染方法
     * @param api 请求和响应对象
     * @throws ServletException
     * @throws IOException
     */
    void render(ServletApi api)
            throws ServletException, IOException;

}
